package com.zhiche.lisa.lspm.service.trailer;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.lspm.dao.model.trailer.TrailerLicense;
import com.zhiche.lisa.lspm.dao.model.trailer.TrailerLicenseAttach;

import java.util.List;

/**
 * 挂车证照附件 service
 * @since 2018-05-28
 * @author lbl
 */
public interface TrailerLicenseAttachService extends IService<TrailerLicenseAttach> {

    /**
     * 批量插入
     * @param list
     */
    void batchInsert(List<TrailerLicenseAttach> list);

    /**
     * 批量删除
     * @param idList
     */
    void deleteBatchByIds(List<Integer> idList);


    /**
     * 根据证照id和牵引车id获取
     * @param
     * @return
     */
    TrailerLicenseAttach selectByVehicleLicenseId(Long vehicleLicenseId);

    /**
     * 根据传入旧的附件信息进行删除
     * @param trailerLicenseAttach
     */
    void updateOldAttachDeleteState(TrailerLicenseAttach trailerLicenseAttach);
}
